-- GENERATED SPELL FOR [Webbed Creature] --


function spell0_17680(pUnit, Event) --@Free Webbed Creature,n/a--
pUnit:FullCastSpellOnTarget(30950,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17680', 577, 1)
end

function spell1_17680(pUnit, Event) --@Free Webbed Creature,n/a--
pUnit:FullCastSpellOnTarget(31009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17680', 543, 1)
end

function Sorts_17680(pUnit, Event)
local choix_sorts_17680 = math.random(0, 1)
if choix_sorts_17680 == 0 then
pUnit:RegisterEvent('spell0_17680', 1, 1)
end
if choix_sorts_17680 == 1 then
pUnit:RegisterEvent('spell1_17680', 1, 1)
end
end

function mob17680_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17680', math.random(1500, 3000), 1)
end

function mob17680_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17680_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17680_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17680, 1, 'mob17680_Action')
RegisterUnitEvent(17680, 2, 'mob17680_Leave')
RegisterUnitEvent(17680, 3, 'mob17680_Kill')
RegisterUnitEvent(17680, 4, 'mob17680_Die')
